<template>
	<view class="item">
		<image class="logo" :src="data.images" mode="heightFix" />
		<view class="desc">
			<view class="title">{{ data.title }}</view>
			<view class="description">{{ data.description }}</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { toRefs } from "vue";
	const props = defineProps({
		data: {
			type: Object,
			default: () => ({})
		}
	});
	const { data } = toRefs(props);
</script>

<style scoped lang="scss">
	.item {
		width: 750rpx;
		height: 100%;
		display: flex;
		align-items: center;
		padding: 8rpx;
		box-sizing: border-box;
		background-color: #fff;

		.logo {
			height: 100%;
		}

		.desc {
			flex: 1;
			height: 100%;
			padding-left: 16rpx;
			box-sizing: border-box;

			.title {
				font-size: 28rpx;
				padding-bottom: 8rpx;
			}

			.description {
				font-size: 24rpx;
			}
		}
	}
</style>